<?php
$page_title = "Blur Scope";
$page_association = "visuals.php";
include("header.php");
$width = 222;
$height = 222;
$pixel = 1;
?>
<center><canvas id="canvas" width="<?php echo $width * $pixel; ?>" height="<?php echo $height * $pixel; ?>"></canvas></center>
<center><div id="error"></div></center>
<script language="javascript" type="text/javascript">

VisualsStop();

var count = 0;

width = <?php echo $width; ?>;
height = <?php echo $height; ?>;
pixel = <?php echo $pixel; ?>;
line_blend_mode = 2;
clearFrame = true;
drawMode = 0;
redraw = false;

function sscope_init() {
    n = 32;
    t = 0;
}

function sscope_frame() {
    t = t - 5;
}

function sscope_beat() {
    drawMode = if2(drawMode, 0, 1);
    count = count + 10
}

function sscope_point() {
    d = i + v * .2;
    r = t + i*PI*count*100;
    x = Math.cos(r)*d*.8;
    y = Math.sin(r)*d*.8;
}


var scope = new r_sscope("Spiral Scope", sscope_init, sscope_frame, sscope_beat, sscope_point);
var scope2 = new r_sscope("Spiral Scope2", sscope_init, sscope_frame, sscope_beat, sscope_point);
scope.fgcolor = 0x0f7;
scope2.fgcolor = 0xf70;
var blur = new r_blur("Blur", 3, false);
var blur2 = new r_blur("Blur2", 2, false);
AddLink(scope2);
//AddLink(blur2);
AddLink(blur);
AddLink(scope);
AddLink(scope);

VisualsStart();
</script>

